#ifndef ADVERTISING_H
#define ADVERTISING_H

#include <QMainWindow>
#include <QWidget>
#include<QDebug>
#include<QDir>
#include<QProcess>
#include<QTimer>
#include <QPixmap>
#include<QTime>
#include<QtNetwork/QTcpServer>
#include<QtNetwork/QTcpSocket>
#include<QtNetwork/QHostAddress>
#include"mclient.h"

namespace Ui {
class advertising;
}

class advertising : public QMainWindow
{
    Q_OBJECT

public:
    explicit advertising(QWidget *parent = 0);
    ~advertising();
    QString equipment_num_label;

private slots:
    void showNextImage();
    void updateTime();

private:
    Ui::advertising *ui;

    // 假设这些变量是某个类的成员变量
    QStringList imagePaths; // 存储图片路径的列表
    int currentIndex = 0;   // 当前显示的图片索引
    QTimer *timer;          // 用于定时切换图片的QTimer
    void showImage(int index);
    QTimer *timer_clock;
    void direct();
    void accessParentFunctionAndData();
   ///QTcpSocket *socket_advertising;




};

#endif // ADVERTISING_H
